package cn.bxshey.resourceSharing.service;


import cn.bxshey.resourceSharing.entity.Comments;
import cn.bxshey.resourceSharing.entity.Essay;
import cn.bxshey.resourceSharing.entity.User;
import cn.bxshey.resourceSharing.vo.comments.PageVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * (Comments)表服务接口
 *
 * @author makejava
 * @since 2023-12-16 17:54:41
 */
public interface CommentsService extends IService<Comments> {

    //分页查询评论
    PageVO selectComments(Integer pid, Integer current, Integer size, Long eid);


    //新增评论
    int insert(User user, Comments comments);

    //获取评论信息数
    Long size(Long id);

    //获取未读评论信息
    List<Comments> unread(Long current,Long id);

    //已读评论信息
    Long read(Long value,Long uid);

}
